package javaLanguage.base;

public class reflectInstance {
    public static void main(String[] args) {
        try{
            Class io = Class.forName("javaLanguage.base.ioInstance");
            ioInstance  ioi = (ioInstance) io.newInstance();
            String str = ioi.getInput();
            System.out.println(str);
        } catch (Exception e){
            e.printStackTrace();
        } finally {
            System.out.println("反射完成！");
        }

    }
}
